import java.io.File;
import java.io.FilenameFilter;
import java.util.Scanner;

//public class Mouse {
  /*  public static void main(String[]args) {
        File file = new File("D:\\");
     /*   FilenameFilter filenameFilter = new FilenameFilter() {
            @Override
            public boolean accept(File dir, String name)  {

                File file1 = new File(dir,name);

                if (dir.isFile() && name.endsWith(".exe")){
                 return true;
                }
                return false;
            }
        };

        if (file !=null && file.isDirectory()){
            for (String s:file.list()){
                System.out.println(s);
            }

        }*/


   /* public static void deleteDir(File file){
        if (file.exists()) {
            File[] files = file.listFiles();
            for (File f : files){

                if (f.isDirectory()){
                    deleteDir(file);
                } else {
                    f.delete();
                }
            }

         }
       }
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入目录");
        String dir = scanner.nextLine();
        System.out.println();
        System.out.println("请输入关键字");
        String keyword = scanner.nextLine();
        System.out.println();
        File file1 = new File(dir);
        if (file.isDirectory()){
            FilenameFilter filenameFilter = ((dir1, name) -> {
                File file2 = new File(dir1, name);
                if (file1.getName().contains(keyword)) return true;
            }
                }
                 }

}
            */




